package com.hou.serviceImpl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.hou.mapper.ListMapper;
import com.hou.parma.PageParam;
import com.hou.pojo.jlist;
import com.hou.service.IListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jack
 * @since 2022-04-06
 */
@Service
public class ListServiceImpl extends ServiceImpl<ListMapper, jlist> implements IListService {
    @Autowired
    ListMapper list;
    @Override
    public List findPage(PageParam pageParam) {//Page<List> listPage
         List page= (List) list.selectPage(new Page<>(pageParam.getCurrentPage(), pageParam.getPageSize()), null).getRecords();

    return page;
    }

    @Override
    public List findPage1(PageParam pageParam) {
        return null;
    }
    //按时间顺序进行查询
    /*@Override
    public List findPage1(PageParam pageParam) {
        QueryWrapper<Object> objectQueryWrapper = new QueryWrapper<>();

    }*/
}
